// const api = 'http://140.210.193.253/'
const api = 'http://crm03.tengen.com.cn/'

// 远程组件加载地址
// const remoteApi = 'http://140.210.193.253/';
const remoteApi = 'http://crm03.tengen.com.cn/';


const honghuan =    'http://crm03.tengen.com.cn/crm04/api/';  // 鸿欢测试接口
// const honghuan =    'http://crm.tengen.com.cn/crm04/api/'; // 鸿欢正式接口
module.exports = {
    '/api/': {
        target: api,
        changeOrigin: true,
    },
    '/externalLink/': {
        target: api,
        changeOrigin: true,
    },
    '/apis/': {
        target: api,
        changeOrigin: true,
        pathRewrite: {
            '^/apis': '',
        },
    },
    '/v1/': {
        target: api,
        changeOrigin: true,
    },
    '/external/': {
        target: api,
        changeOrigin: true,
    },
    '/extensions/': {
        target: remoteApi,
        changeOrigin: true,
    },
    '/honghuan/': {
        target: honghuan, // 鸿欢接口
        changeOrigin: true,
        pathRewrite: {
            '^/honghuan': '',
        },
    },
  
}
